<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="icon" type="image/ico" th:href="@{/images/favicon.ico}">
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
</head>
<body class="layui-tab-content">
<div class="layui-card layui-card-body">

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>修改密码</legend>
    </fieldset>
    <form class="layui-form layui-form-pane" id="userForm" lay-filter="editUser">
        <div class="layui-form-item">
            <label class="layui-form-label">登录账号:</label>
            <div class="layui-input-inline">
                <input type="text" name="userName" lay-verify="required" autocomplete="off"
                       class="layui-input layui-form-danger" th:value="${user.username}" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-tip-required">*</i>手机号:</label>
            <div class="layui-input-inline">
                <input type="tel" name="userPhone" lay-verify="required|phone" autocomplete="off" placeholder="请填写手机号"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-tip-required">*</i>旧密码:</label>
            <div class="layui-input-inline">
                <input type="password" name="oldPass" lay-verify="required|pass" autocomplete="off" placeholder="请输入旧密码"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-tip-required">*</i>新密码:</label>
            <div class="layui-input-inline">
                <input type="password" name="newPass" lay-verify="required|pass" autocomplete="off" placeholder="请输入新密码"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i class="layui-tip-required">*</i>确认密码:</label>
            <div class="layui-input-inline">
                <input type="password" name="newPass1" lay-verify="required|pass" autocomplete="off" placeholder="请再次确认新密码"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <button id="saveUser" class="layui-btn" lay-submit lay-filter="editUser">保存</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </form>
</div>
<script type="text/javascript" th:src="@{/js/plugins/jquery-1.11.3.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/sys/userManage/resetPass.js}"></script>

</body>

</html>